const Controller = require('egg').Controller;
class ServiceController extends Controller {
    async index(){
        let data=await this.ctx.service.service.getindex();
        this.ctx.body=data;
    }
    async create(){
        let data = await this.ctx.service.service.getcreate();
        this.ctx.body=data;
    }
    async destroy(){
        let id = this.ctx.params.id;
        let data = await this.ctx.service.service.getdestroy(id);
        this.ctx.body=data;
    }
}

module.exports = ServiceController;